<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="zhcms.framework.*" %> 
<%@ page import="zhcms.cms.*" %> 
<%
//设置缓存
String url=request.getScheme()+"://"+request.getHeader("host")+request.getRequestURI();   
if(request.getQueryString()!=null) url+="?"+request.getQueryString();
GyCache gycache=new GyCache(10,url);
gycache.cacheCheck(application.getRealPath("/"));
String iscache=gycache.getCacheGetZ();
//设置输出内容
String OutContent="";

if(iscache.equals("n") || iscache.equals("u"))
{
	//获取系统的模板参数
//GyTest t=new GyTest("/template/Index.html","UTF-8");
GyT t=new GyT();
t.setFrontSeparator("{@#");
t.setBackSeparator("#@}");
t.setfilename("/template/Index.html");

GySystem gys=new GySystem();
t.setInVtrParameter("SiteName", gys.getSiteName());
t.setInVtrParameter("SiteEMail", gys.getSiteEMail());
t.setInVtrParameter("SiteUrl", gys.getSiteUrl());
t.setInVtrParameter("SystemVersion", gys.getSystemVersion());

ArrayList<HashMap<String, String>> P_a9idf5d2;
P_a9idf5d2=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_tvtmrk =new GyTablseToList();
P_a9idf5d2=Cl_tvtmrk.getAllList("select Id,AddDate,Title from gyhy_content where 1=1 order by AddDate desc limit 0 , 18");
t.setInForParameter("indexnewlist", P_a9idf5d2);

ArrayList<HashMap<String, String>> P_9w2489xu;
P_9w2489xu=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_lxb0mv =new GyTablseToList();
P_9w2489xu=Cl_lxb0mv.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title,ViewNum from gyhy_content where 1=1 order by ViewNum desc limit 0 , 10");
t.setInForParameter("tuijianlist", P_9w2489xu);

ArrayList<HashMap<String, String>> P_ymhhk29s;
P_ymhhk29s=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_5ne6ki =new GyTablseToList();
P_ymhhk29s=Cl_5ne6ki.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title,ViewNum from gyhy_content where 1=1 and ColumnId='1' order by AddDate desc limit 0 , 6");
t.setInForParameter("asplist", P_ymhhk29s);

 ArrayList<HashMap<String, String>> P_u41q4aut;
P_u41q4aut=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_ymntas =new GyTablseToList();
P_u41q4aut=Cl_ymntas.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title,ViewNum from gyhy_content where 1=1 and ColumnId='2' order by AddDate desc limit 0 , 6");
t.setInForParameter("phplist", P_u41q4aut);

ArrayList<HashMap<String, String>> P_0yoembw9;
P_0yoembw9=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_i6vyru =new GyTablseToList();
P_0yoembw9=Cl_i6vyru.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title,ViewNum from gyhy_content where 1=1 and ColumnId='3' order by AddDate desc limit 0 , 6");
t.setInForParameter("jsplist", P_0yoembw9);

ArrayList<HashMap<String, String>> P_7hdpaw8r;
P_7hdpaw8r=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_c6ur3u =new GyTablseToList();
P_7hdpaw8r=Cl_c6ur3u.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title,ViewNum from gyhy_content where 1=1 and ColumnId='4' order by AddDate desc limit 0 , 5");
t.setInForParameter("netlist", P_7hdpaw8r);

ArrayList<HashMap<String, String>> P_buldq9lr;
P_buldq9lr=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_5rdot7 =new GyTablseToList();
P_buldq9lr=Cl_5rdot7.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title from gyhy_content where 1=1 and ColumnId='6' order by AddDate desc limit 0 , 3");
t.setInForParameter("mysqllist", P_buldq9lr);

ArrayList<HashMap<String, String>> P_cs0471p1;
P_cs0471p1=new ArrayList<HashMap<String, String>>();
GyTablseToList Cl_3etayo =new GyTablseToList();
P_cs0471p1=Cl_3etayo.getAllList("select Id,ColumnCode,ColumnName,AddDate,Title from gyhy_content where 1=1 and ColumnId='7' order by AddDate desc limit 0 , 3");
t.setInForParameter("mssqllist", P_cs0471p1);


t.parse("UTF-8");
OutContent=t.Out();

	//建立缓存
	if(iscache.equals("n"))
	{
		gycache.WriteNewFile(OutContent,"UTF-8");
	}
	else if(iscache.equals("u"))
	{
		gycache.WriteUpdateFile(OutContent,"UTF-8");
	}

}
else 
{
	gycache.getContent("UTF-8");
	OutContent=gycache.getCacheReturnS();
}
out.println(OutContent);
%>